home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / include / lib.h < prev    next >
C/C++ Source or Header  |  1990-07-24  |  1KB  |  40 lines

  1. /* The <lib.h> header is the master header used by the library.
  2.  * All the C files in the lib subdirectories include it.
  3.  */
  4.  
  5. #ifndef _LIB_H
  6. #define _LIB_H
  7.  
  8. /* First come the defines. */
  9. #define _POSIX_SOURCE      1    /* tell headers to include POSIX stuff */
  10. #define _MINIX             1    /* tell headers to include MINIX stuff */
  11.  
  12. /* The following are so basic, all the lib files get them automatically. */
  13. #include <minix/config.h>    /* must be first */
  14. #include <sys/types.h>
  15. #include <limits.h>
  16. #include <errno.h>
  17. #include <ansi.h>
  18.  
  19. #include <minix/const.h>
  20. #include <minix/type.h>
  21. #include <minix/callnr.h>
  22.  
  23. extern message _M;
  24.  
  25. #define MM                 0
  26. #define FS                 1
  27.  
  28. _PROTOTYPE( int _callm1, (int _proc, int _syscallnr,
  29.              int _int1, int _int2, int _int3,
  30.              char *_ptr1, char *_ptr2, char *_ptr3)        );
  31. _PROTOTYPE( int _callm3, (int _proc, int _syscallnr, int _int1,
  32.              const char *_name)                );
  33. _PROTOTYPE( int _callx, (int _proc, int _syscallnr)            );
  34. _PROTOTYPE( int _len, (const char *_s)                    );
  35. _PROTOTYPE( void panic, (const char *_message, int _errnum)        );
  36. _PROTOTYPE( int _sendrec, (int _src_dest, message *_m_ptr)        );
  37. _PROTOTYPE( void begsig, (int dummy)                    );
  38.  
  39. #endif /* _LIB_H */
  40.